/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package reproductorpersonalizado;

import com.ibm.media.bean.multiplayer.MultiPlayerBean;
import com.sun.media.MediaPlayer;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.Player;
import javax.swing.JFileChooser;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Luigi
 */
public class Main {
    static Player media=new MediaPlayer();
    public static void main(String[] args) {
           try {
               URL direccion=null;
               JFileChooser filecho=new JFileChooser();
               filecho.showOpenDialog(null);
               direccion=filecho.getSelectedFile().toURL();
             media=Manager.createPlayer(direccion);
             media.start();
        } catch (Exception e) {
        }
    }

}
